const http = uni.$u.http
const prefix = '/user/site'
export default {
	// 站点列表
	siteList: (params) => http.get(`${prefix}/list`, {
		params
	}),

	// 附近站点列表
	peripherySiteList: (params) => http.get(`${prefix}/periphery-list`, {
		params
	}),

	// 站点详情
	siteInfo: (params) => http.get(`${prefix}/info`, {
		params
	}),


	// 计算当前位置到站点的直线距离
	siteLinearDistance: (params) => http.get(`${prefix}/linear-distance`, {
		params
	}),

}
